laravel with trashed

48

laravel with trashed -

$flights = App\Flight::withTrashed()
                ->where('account_id', 1)
                ->get();

laravel update from query -

$affected = DB::table('users')
              ->where('id', 1)
              ->update(['votes' => 1]);

laravel query with trashed -

$user->roles()->withTrashed()->get();

Comments

Submit
0 Comments